package com.chuangyang.fixboxmaster.service;

import com.chuangyang.fixboxmaster.BuildConfig;

/**
 * Created by vanshu on 15/3/23 13:30.
 */
public class FixBoxApi {

    public static final String BASE_URL_TEST = "http://apimaster.creayoung.com/fixbox_app_server/appmaster_index.php/"; //测试服务器
    public static final String BASE_URL_ONLINE = "http://productapiclient.duapp.com/appmaster_index.php/"; //上线服务器
    public static  String BASE_URL = null;

    static {
        if (BuildConfig.DEBUG) {
            BASE_URL=BASE_URL_TEST;
        }else {
            BASE_URL=BASE_URL_ONLINE;
        }
    }

    public static final String GET_VERIFY_CODE = BASE_URL + "Master/sendVerify";
    public static final String USER_LOGIN = BASE_URL + "Master/login";
    public static final String USER_INFO = BASE_URL + "Master/getMasterInfo";
    public static final String USER_ORDER = BASE_URL + "Order/getMyOrders";    //我的订单
    public static final String UNTAKE_ORDERS = BASE_URL + "Order/getUnTakeOrders";  //可接订单
    public static final String ORDER_DETAIL = BASE_URL + "Order/getOrderDetail";
    public static final String ORDER_TAKE_ORDER = BASE_URL + "Order/takeOrder";
    public static final String ORDER_CONFIRM_ORDER = BASE_URL + "Order/confirmOrderFixFinished";
    public static final String USER_LOGOUT = BASE_URL + "Master/logout";
    public static final String UPLOAD_CHANNEL_ID = BASE_URL + "Master/uploadUserDeviceToken"; //上传channelId
    public static final String CASH_REQUEST= BASE_URL + "Master/withdrawCash"; //师傅端提现
    public static final String GET_BRAND = BASE_URL + "Order/getBrandList"; //获取品牌列表
    public static final String GET_SPECIFICATION = BASE_URL + "Order/getSpecificationList"; //获取规格列表
    public static final String GET_PART = BASE_URL + "Order/getPartList"; //获取配件列表
    public static final String GET_DIAGNOSIS_FREE = BASE_URL + "CostItem/getFixFee"; //获取上门诊断费
    //public static final String ORDER_FIX_FINISH = BASE_URL + "Order/confirmOrderFixFinished"; //成费用清单 2.0 版注释
    public static final String ORDER_FIX_FINISH = BASE_URL + "Order/orderPriceComfirm"; //成费用清单
    public static final String GET_ONLINE_OFFLINE = BASE_URL + "Master/workStateSwitch"; //上下班切换
    public static final String GET_CASH_INCOME_HISTORY=BASE_URL+"Master/finishedOrders";// 提现记录
    public static final String GET_CASH_REQUEST_HISTORY=BASE_URL+"Master/withdrawOrders";// 提现记录
    public static final String GET_UPLOAD_LOCATION=BASE_URL+"Master/uploadLatitude";// 上传经纬度
    public static final String GET_MASTER_SKILL = BASE_URL + "Master/getMasterSkills"; //获取师傅的技能列表
    public static final String GET_MY_MESSAGE = BASE_URL+"Advert/getMyMsgs";  //消息中心
    public static final String READ_ONE_MESSAGE = BASE_URL+"Advert/readMsg";  //读取消息
    public static final String ADVERT=BASE_URL+"Advert/getHomePageAdverts";  //更新广告资源
    public static final String B2B_UNTAKE_ORDERS=BASE_URL+"B2BWebOrder/getB2bUnTakeOrders";  // 获取企业接单
    public static final String B2B_ORDER_DETAIL=BASE_URL+"B2BWebOrder/getB2bWebOrderDetail";  // 获取企业订单详情
    public static final String B2B_TAKE_ORDER=BASE_URL+"B2BWebOrder/takeB2bOrder"; // 企业接单
    public static final String B2B_REQUEST_CODE=BASE_URL+"B2BWebOrder/sendFinishFixVerifyCode";  //获取订单完成的校验码
    public static final String B2B_VERIFY_CODE=BASE_URL+"B2BWebOrder/b2bOrderFinishConirm"; //验证订单
    public static final String B2B_ONLINE_SERVICE=BASE_URL+"B2BWebOrder/notesContact"; // 在线客服
    public static final String B2B_MY_ORDER=BASE_URL+"B2BWebOrder/getMyB2bOrders"; // 企业我的订单
    public static final String PING_CHARGE=BASE_URL+"PingppPay/pay";  //获得Ping的支付凭据
    public static final String GET_COSTITEM = BASE_URL + "CostItem/costItems";  //获取费用清单 2.0版
    public static final String GET_PART_LIST = BASE_URL + "B2BWebOrder/getB2BPartsList";  //获取配件列表
    public static final String GET_PART_LIST_FEE = BASE_URL + "B2BWebOrder/getPartsList";  //获取费用清单
    public static final String GET_PART_LIST_SAVE = BASE_URL + "B2BWebOrder/orderPartsListSave";  //获取费用清单
    public static final String GET_CHANGE_APPOINT_TIME = BASE_URL + "B2BWebOrder/writePlanTime";  //企业端修改预约时间
    public static final String GET_ORDER_TIME_OUT = BASE_URL + "Order/findExpiredOrders";  //是否过期
    public static final String GET_ALL_UNTAKE_ORDERS = BASE_URL + "Order/getAllUntakeOrders";  //获取所有未接订单
    public static final String GET_ALL_MY_ORDER = BASE_URL + "Order/finalMyAllOrders";  //获取所有未接订单
    public static final String GET_ALL_MY_ORDER_30 = BASE_URL + "Order/getAllMyOrders3_0";  //获取所有未接订单
    public static final String GET_ALL_MY_ORDER_31 = BASE_URL + "Order/getAllMyOrders3_1";  //获取所有未接订单
    public static final String GET_RECYCER_ORDER_FINISH = BASE_URL + "Order/recyleOrderFinish";  //完成回收接口
}